// after在多少次后执行
function after(times,callback){
  console.log(times);
  return function(){
    console.log(times);
    if(--times == 0){
      callback()
    }
  }
}

let fn = after(3, function(){
  console.log('after');
})

fn()
fn()
fn()
